package cn.itcast.ssm.service.impl;

import cn.itcast.ssm.mapper.UserInfMapper;
import cn.itcast.ssm.po.UserInf;
import cn.itcast.ssm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author tyh
 * @Package cn.itcast.ssm.service.impl
 * @Description:
 * @date 2018/5/9 15:14
 */
@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserInfMapper userInfMapper;

    @Override
    public boolean register(UserInf user) {
        if(userInfMapper.insertSelective(user)!=0){
            return true;
        }else{
            return false;
        }

    }
}
